# filenumber = 0
# def ceshi():
#     assert_response = {'msg1': {'assertEqual': '短信发送成功'}, 'data': {'assertEqual': 'True'}}
#     responseJson = {'code': 0, 'msg': '短信发送成功', 'data': True}
#
#     assert_response_list_all = []
#     for key, value in assert_response.items():
#         global filenumber
#         filenumber = 0
#
#         assert_response_list = []
#         assert_response_dict = {}
#         assert_response_dict[key] = value
#         assert_response_list.append(assert_response_dict)
#         assert_response_list_all.append(assert_response_list)
#         print("assert_response_list_all为：%s" % assert_response_list_all) # [[{'msg1': {'assertEqual': '短信发送成功'}}], [{'data': {'assertEqual': 'True'}}]]
#
#     for assert_list in assert_response_list_all:  #[{'msg1': {'assertEqual': '短信发送成功'}}]
#         print("assert_list为：%s"%assert_list)   # [{'data': {'assertEqual': 'True'}}]
#
#         for i in assert_list[0]: #{'msg1': {'assertEqual': '短信发送成功'}}  {'data': {'assertEqual': 'True'}}
#             responseJson_list = list(responseJson.keys())
#             print('实际响应key列表:%s' % responseJson_list)
#             if i not in responseJson_list:  #  msg1 / data  是否在[code,msg,data]
#                 filenumber += 1
#                 print('预期key错误，key值是%s,这条测试案例错误数量+1，此时filenumber为%d' % (i, filenumber))
#                 assert_list.append("失败")
#                 print(assert_list)
#
#             else:
#                 print("执行else!")
#                 # assertway = list(assert_list[0][i].keys())[0]
#                 # assert_content = assert_list[0][i][assertway]
#                 # response_content = str(responseJson[i])
#                 # getAssertWay(assertway, assert_content, response_content,assert_list)
#
# ceshi()

a = [1,2]
print(type(len(a)))
